package pl.PawelAndAlicja.badugiproject.main.Game;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class BetTest {

	private static final int SMALL_BLIND = 500;
	private static final int BIG_BLIND = 100;
	
	Bet bet;
	ArrayList pool;
	int CurrentPool;

	@Before
	public void setUp() throws Exception {
		Bet bet = new Bet();
		pool = new ArrayList();
		CurrentPool = SMALL_BLIND + BIG_BLIND;
	}

	@Test
	public void testAddSmallBigBet() {
		
		pool.add(CurrentPool);
		
		Object obcject = pool.get(0);
		int x = (Integer) obcject;
		
		assertNotNull(pool);
		assertEquals(x,600);
	}

	@Test
	public void testAddBet() {
		
			int MyBet = 1000;
			CurrentPool=CurrentPool + MyBet;
			pool.add(CurrentPool);
			
			Object obcject = pool.get(0);
			int x = (Integer) obcject;
			assertEquals(x,1600);

	}
	
	@After
	public void tearDown() throws Exception {
		bet = null;
		pool = null;
	}

}
